<div id="content" class="search">
    <h1><?=$data->TITLE?></h1>
    <h3><?=$data->DESCRIPTION?></h3>

    <div class="results">
    <?
    if($data->search->results): foreach ($data->search->results as $i)
        include 'apps/'.$data->search->app.'/template/_item.html';
    else: //echo _('not found');
    ?>
    <form id="form" method="get" action="/<?=APP.'/profile?'?>">
        <div class="formLineDark">
            <label class="formLabel"><?=_('Search')?>: </label>
            <span class="input">
                <input id="q" name="q" type="text" tabindex="1" />
            </span>
        <span class="clear"></span>
        </div>
        <div class="formLineLight">
            <span class="submit">
            <span id="loader" class="loader"><img src="/themes/<?=THEME?>/images/loader.gif" alt="loader" /></span>
            <input id="submit" class="submit" type="submit" value="<?=_('Search')?>" tabindex="2" />
            </span>
        <span class="clear"></span>
        </div>
    </form>
    <?endif;?>
    <div class="clear"></div>
    </div>
    <div class="pagerBottom">
    <?=common::pager(array(
        'total'=>$data->search->total,
        'limit'=>$data->LIMIT,
        'page'=>$data->PAGE,
        'link'=>$data->search->link,
        'left'=>''));
    ?>
    </div>
<div class="clear"></div>
</div>
<div id="aside"></div>